package qldc.pm.tienan.model.impl;

import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.DateUtil;
import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.ProxyUtil;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.model.CacheModel;
import com.liferay.portal.model.impl.BaseModelImpl;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.util.PortalUtil;

import com.liferay.portlet.expando.model.ExpandoBridge;
import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;

import qldc.pm.tienan.model.TangThu;
import qldc.pm.tienan.model.TangThuModel;

import java.io.Serializable;

import java.sql.Types;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * The base model implementation for the TangThu service. Represents a row in the &quot;TA_TangThu&quot; database table, with each column mapped to a property of this class.
 *
 * <p>
 * This implementation and its corresponding interface {@link qldc.pm.tienan.model.TangThuModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link TangThuImpl}.
 * </p>
 *
 * @author Brian Wing Shun Chan
 * @see TangThuImpl
 * @see qldc.pm.tienan.model.TangThu
 * @see qldc.pm.tienan.model.TangThuModel
 * @generated
 */
public class TangThuModelImpl extends BaseModelImpl<TangThu>
    implements TangThuModel {
    /*
     * NOTE FOR DEVELOPERS:
     *
     * Never modify or reference this class directly. All methods that expect a tang thu model instance should use the {@link qldc.pm.tienan.model.TangThu} interface instead.
     */
    public static final String TABLE_NAME = "TA_TangThu";
    public static final Object[][] TABLE_COLUMNS = {
            { "tangThuId", Types.BIGINT },
            { "userId", Types.BIGINT },
            { "userName", Types.VARCHAR },
            { "createDate", Types.TIMESTAMP },
            { "modifiedDate", Types.TIMESTAMP },
            { "soSoHoKhau", Types.VARCHAR },
            { "diaChiThuongTru", Types.VARCHAR },
            { "diaChiThuongTruTinhId", Types.BIGINT },
            { "diaChiThuongTruQuanHuyenId", Types.BIGINT },
            { "diaChiThuongTruPhuongXaId", Types.BIGINT },
            { "doiTuongTienAnId", Types.BIGINT },
            { "hoVaTenNguoiCoTienAn", Types.VARCHAR },
            { "ngayLuu", Types.TIMESTAMP },
            { "viTriLuu", Types.VARCHAR },
            { "lapMoi", Types.BOOLEAN },
            { "chuThich", Types.VARCHAR }
        };
    public static final String TABLE_SQL_CREATE = "create table TA_TangThu (tangThuId LONG not null primary key,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,soSoHoKhau VARCHAR(75) null,diaChiThuongTru VARCHAR(75) null,diaChiThuongTruTinhId LONG,diaChiThuongTruQuanHuyenId LONG,diaChiThuongTruPhuongXaId LONG,doiTuongTienAnId LONG,hoVaTenNguoiCoTienAn VARCHAR(75) null,ngayLuu DATE null,viTriLuu VARCHAR(75) null,lapMoi BOOLEAN,chuThich VARCHAR(75) null)";
    public static final String TABLE_SQL_DROP = "drop table TA_TangThu";
    public static final String ORDER_BY_JPQL = " ORDER BY tangThu.createDate DESC";
    public static final String ORDER_BY_SQL = " ORDER BY TA_TangThu.createDate DESC";
    public static final String DATA_SOURCE = "liferayDataSource";
    public static final String SESSION_FACTORY = "liferaySessionFactory";
    public static final String TX_MANAGER = "liferayTransactionManager";
    public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
                "value.object.entity.cache.enabled.qldc.pm.tienan.model.TangThu"),
            true);
    public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
                "value.object.finder.cache.enabled.qldc.pm.tienan.model.TangThu"),
            true);
    public static final boolean COLUMN_BITMASK_ENABLED = false;
    public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.util.service.ServiceProps.get(
                "lock.expiration.time.qldc.pm.tienan.model.TangThu"));
    private static ClassLoader _classLoader = TangThu.class.getClassLoader();
    private static Class<?>[] _escapedModelInterfaces = new Class[] {
            TangThu.class
        };
    private long _tangThuId;
    private long _userId;
    private String _userUuid;
    private String _userName;
    private Date _createDate;
    private Date _modifiedDate;
    private String _soSoHoKhau;
    private String _diaChiThuongTru;
    private long _diaChiThuongTruTinhId;
    private long _diaChiThuongTruQuanHuyenId;
    private long _diaChiThuongTruPhuongXaId;
    private long _doiTuongTienAnId;
    private String _hoVaTenNguoiCoTienAn;
    private Date _ngayLuu;
    private String _viTriLuu;
    private boolean _lapMoi;
    private String _chuThich;
    private TangThu _escapedModel;

    public TangThuModelImpl() {
    }

    @Override
    public long getPrimaryKey() {
        return _tangThuId;
    }

    @Override
    public void setPrimaryKey(long primaryKey) {
        setTangThuId(primaryKey);
    }

    @Override
    public Serializable getPrimaryKeyObj() {
        return _tangThuId;
    }

    @Override
    public void setPrimaryKeyObj(Serializable primaryKeyObj) {
        setPrimaryKey(((Long) primaryKeyObj).longValue());
    }

    @Override
    public Class<?> getModelClass() {
        return TangThu.class;
    }

    @Override
    public String getModelClassName() {
        return TangThu.class.getName();
    }

    @Override
    public Map<String, Object> getModelAttributes() {
        Map<String, Object> attributes = new HashMap<String, Object>();

        attributes.put("tangThuId", getTangThuId());
        attributes.put("userId", getUserId());
        attributes.put("userName", getUserName());
        attributes.put("createDate", getCreateDate());
        attributes.put("modifiedDate", getModifiedDate());
        attributes.put("soSoHoKhau", getSoSoHoKhau());
        attributes.put("diaChiThuongTru", getDiaChiThuongTru());
        attributes.put("diaChiThuongTruTinhId", getDiaChiThuongTruTinhId());
        attributes.put("diaChiThuongTruQuanHuyenId",
            getDiaChiThuongTruQuanHuyenId());
        attributes.put("diaChiThuongTruPhuongXaId",
            getDiaChiThuongTruPhuongXaId());
        attributes.put("doiTuongTienAnId", getDoiTuongTienAnId());
        attributes.put("hoVaTenNguoiCoTienAn", getHoVaTenNguoiCoTienAn());
        attributes.put("ngayLuu", getNgayLuu());
        attributes.put("viTriLuu", getViTriLuu());
        attributes.put("lapMoi", getLapMoi());
        attributes.put("chuThich", getChuThich());

        return attributes;
    }

    @Override
    public void setModelAttributes(Map<String, Object> attributes) {
        Long tangThuId = (Long) attributes.get("tangThuId");

        if (tangThuId != null) {
            setTangThuId(tangThuId);
        }

        Long userId = (Long) attributes.get("userId");

        if (userId != null) {
            setUserId(userId);
        }

        String userName = (String) attributes.get("userName");

        if (userName != null) {
            setUserName(userName);
        }

        Date createDate = (Date) attributes.get("createDate");

        if (createDate != null) {
            setCreateDate(createDate);
        }

        Date modifiedDate = (Date) attributes.get("modifiedDate");

        if (modifiedDate != null) {
            setModifiedDate(modifiedDate);
        }

        String soSoHoKhau = (String) attributes.get("soSoHoKhau");

        if (soSoHoKhau != null) {
            setSoSoHoKhau(soSoHoKhau);
        }

        String diaChiThuongTru = (String) attributes.get("diaChiThuongTru");

        if (diaChiThuongTru != null) {
            setDiaChiThuongTru(diaChiThuongTru);
        }

        Long diaChiThuongTruTinhId = (Long) attributes.get(
                "diaChiThuongTruTinhId");

        if (diaChiThuongTruTinhId != null) {
            setDiaChiThuongTruTinhId(diaChiThuongTruTinhId);
        }

        Long diaChiThuongTruQuanHuyenId = (Long) attributes.get(
                "diaChiThuongTruQuanHuyenId");

        if (diaChiThuongTruQuanHuyenId != null) {
            setDiaChiThuongTruQuanHuyenId(diaChiThuongTruQuanHuyenId);
        }

        Long diaChiThuongTruPhuongXaId = (Long) attributes.get(
                "diaChiThuongTruPhuongXaId");

        if (diaChiThuongTruPhuongXaId != null) {
            setDiaChiThuongTruPhuongXaId(diaChiThuongTruPhuongXaId);
        }

        Long doiTuongTienAnId = (Long) attributes.get("doiTuongTienAnId");

        if (doiTuongTienAnId != null) {
            setDoiTuongTienAnId(doiTuongTienAnId);
        }

        String hoVaTenNguoiCoTienAn = (String) attributes.get(
                "hoVaTenNguoiCoTienAn");

        if (hoVaTenNguoiCoTienAn != null) {
            setHoVaTenNguoiCoTienAn(hoVaTenNguoiCoTienAn);
        }

        Date ngayLuu = (Date) attributes.get("ngayLuu");

        if (ngayLuu != null) {
            setNgayLuu(ngayLuu);
        }

        String viTriLuu = (String) attributes.get("viTriLuu");

        if (viTriLuu != null) {
            setViTriLuu(viTriLuu);
        }

        Boolean lapMoi = (Boolean) attributes.get("lapMoi");

        if (lapMoi != null) {
            setLapMoi(lapMoi);
        }

        String chuThich = (String) attributes.get("chuThich");

        if (chuThich != null) {
            setChuThich(chuThich);
        }
    }

    @Override
    public long getTangThuId() {
        return _tangThuId;
    }

    @Override
    public void setTangThuId(long tangThuId) {
        _tangThuId = tangThuId;
    }

    @Override
    public long getUserId() {
        return _userId;
    }

    @Override
    public void setUserId(long userId) {
        _userId = userId;
    }

    @Override
    public String getUserUuid() throws SystemException {
        return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
    }

    @Override
    public void setUserUuid(String userUuid) {
        _userUuid = userUuid;
    }

    @Override
    public String getUserName() {
        if (_userName == null) {
            return StringPool.BLANK;
        } else {
            return _userName;
        }
    }

    @Override
    public void setUserName(String userName) {
        _userName = userName;
    }

    @Override
    public Date getCreateDate() {
        return _createDate;
    }

    @Override
    public void setCreateDate(Date createDate) {
        _createDate = createDate;
    }

    @Override
    public Date getModifiedDate() {
        return _modifiedDate;
    }

    @Override
    public void setModifiedDate(Date modifiedDate) {
        _modifiedDate = modifiedDate;
    }

    @Override
    public String getSoSoHoKhau() {
        if (_soSoHoKhau == null) {
            return StringPool.BLANK;
        } else {
            return _soSoHoKhau;
        }
    }

    @Override
    public void setSoSoHoKhau(String soSoHoKhau) {
        _soSoHoKhau = soSoHoKhau;
    }

    @Override
    public String getDiaChiThuongTru() {
        if (_diaChiThuongTru == null) {
            return StringPool.BLANK;
        } else {
            return _diaChiThuongTru;
        }
    }

    @Override
    public void setDiaChiThuongTru(String diaChiThuongTru) {
        _diaChiThuongTru = diaChiThuongTru;
    }

    @Override
    public long getDiaChiThuongTruTinhId() {
        return _diaChiThuongTruTinhId;
    }

    @Override
    public void setDiaChiThuongTruTinhId(long diaChiThuongTruTinhId) {
        _diaChiThuongTruTinhId = diaChiThuongTruTinhId;
    }

    @Override
    public long getDiaChiThuongTruQuanHuyenId() {
        return _diaChiThuongTruQuanHuyenId;
    }

    @Override
    public void setDiaChiThuongTruQuanHuyenId(long diaChiThuongTruQuanHuyenId) {
        _diaChiThuongTruQuanHuyenId = diaChiThuongTruQuanHuyenId;
    }

    @Override
    public long getDiaChiThuongTruPhuongXaId() {
        return _diaChiThuongTruPhuongXaId;
    }

    @Override
    public void setDiaChiThuongTruPhuongXaId(long diaChiThuongTruPhuongXaId) {
        _diaChiThuongTruPhuongXaId = diaChiThuongTruPhuongXaId;
    }

    @Override
    public long getDoiTuongTienAnId() {
        return _doiTuongTienAnId;
    }

    @Override
    public void setDoiTuongTienAnId(long doiTuongTienAnId) {
        _doiTuongTienAnId = doiTuongTienAnId;
    }

    @Override
    public String getHoVaTenNguoiCoTienAn() {
        if (_hoVaTenNguoiCoTienAn == null) {
            return StringPool.BLANK;
        } else {
            return _hoVaTenNguoiCoTienAn;
        }
    }

    @Override
    public void setHoVaTenNguoiCoTienAn(String hoVaTenNguoiCoTienAn) {
        _hoVaTenNguoiCoTienAn = hoVaTenNguoiCoTienAn;
    }

    @Override
    public Date getNgayLuu() {
        return _ngayLuu;
    }

    @Override
    public void setNgayLuu(Date ngayLuu) {
        _ngayLuu = ngayLuu;
    }

    @Override
    public String getViTriLuu() {
        if (_viTriLuu == null) {
            return StringPool.BLANK;
        } else {
            return _viTriLuu;
        }
    }

    @Override
    public void setViTriLuu(String viTriLuu) {
        _viTriLuu = viTriLuu;
    }

    @Override
    public boolean getLapMoi() {
        return _lapMoi;
    }

    @Override
    public boolean isLapMoi() {
        return _lapMoi;
    }

    @Override
    public void setLapMoi(boolean lapMoi) {
        _lapMoi = lapMoi;
    }

    @Override
    public String getChuThich() {
        if (_chuThich == null) {
            return StringPool.BLANK;
        } else {
            return _chuThich;
        }
    }

    @Override
    public void setChuThich(String chuThich) {
        _chuThich = chuThich;
    }

    @Override
    public ExpandoBridge getExpandoBridge() {
        return ExpandoBridgeFactoryUtil.getExpandoBridge(0,
            TangThu.class.getName(), getPrimaryKey());
    }

    @Override
    public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
        ExpandoBridge expandoBridge = getExpandoBridge();

        expandoBridge.setAttributes(serviceContext);
    }

    @Override
    public TangThu toEscapedModel() {
        if (_escapedModel == null) {
            _escapedModel = (TangThu) ProxyUtil.newProxyInstance(_classLoader,
                    _escapedModelInterfaces, new AutoEscapeBeanHandler(this));
        }

        return _escapedModel;
    }

    @Override
    public Object clone() {
        TangThuImpl tangThuImpl = new TangThuImpl();

        tangThuImpl.setTangThuId(getTangThuId());
        tangThuImpl.setUserId(getUserId());
        tangThuImpl.setUserName(getUserName());
        tangThuImpl.setCreateDate(getCreateDate());
        tangThuImpl.setModifiedDate(getModifiedDate());
        tangThuImpl.setSoSoHoKhau(getSoSoHoKhau());
        tangThuImpl.setDiaChiThuongTru(getDiaChiThuongTru());
        tangThuImpl.setDiaChiThuongTruTinhId(getDiaChiThuongTruTinhId());
        tangThuImpl.setDiaChiThuongTruQuanHuyenId(getDiaChiThuongTruQuanHuyenId());
        tangThuImpl.setDiaChiThuongTruPhuongXaId(getDiaChiThuongTruPhuongXaId());
        tangThuImpl.setDoiTuongTienAnId(getDoiTuongTienAnId());
        tangThuImpl.setHoVaTenNguoiCoTienAn(getHoVaTenNguoiCoTienAn());
        tangThuImpl.setNgayLuu(getNgayLuu());
        tangThuImpl.setViTriLuu(getViTriLuu());
        tangThuImpl.setLapMoi(getLapMoi());
        tangThuImpl.setChuThich(getChuThich());

        tangThuImpl.resetOriginalValues();

        return tangThuImpl;
    }

    @Override
    public int compareTo(TangThu tangThu) {
        int value = 0;

        value = DateUtil.compareTo(getCreateDate(), tangThu.getCreateDate());

        value = value * -1;

        if (value != 0) {
            return value;
        }

        return 0;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }

        if (!(obj instanceof TangThu)) {
            return false;
        }

        TangThu tangThu = (TangThu) obj;

        long primaryKey = tangThu.getPrimaryKey();

        if (getPrimaryKey() == primaryKey) {
            return true;
        } else {
            return false;
        }
    }

    @Override
    public int hashCode() {
        return (int) getPrimaryKey();
    }

    @Override
    public void resetOriginalValues() {
    }

    @Override
    public CacheModel<TangThu> toCacheModel() {
        TangThuCacheModel tangThuCacheModel = new TangThuCacheModel();

        tangThuCacheModel.tangThuId = getTangThuId();

        tangThuCacheModel.userId = getUserId();

        tangThuCacheModel.userName = getUserName();

        String userName = tangThuCacheModel.userName;

        if ((userName != null) && (userName.length() == 0)) {
            tangThuCacheModel.userName = null;
        }

        Date createDate = getCreateDate();

        if (createDate != null) {
            tangThuCacheModel.createDate = createDate.getTime();
        } else {
            tangThuCacheModel.createDate = Long.MIN_VALUE;
        }

        Date modifiedDate = getModifiedDate();

        if (modifiedDate != null) {
            tangThuCacheModel.modifiedDate = modifiedDate.getTime();
        } else {
            tangThuCacheModel.modifiedDate = Long.MIN_VALUE;
        }

        tangThuCacheModel.soSoHoKhau = getSoSoHoKhau();

        String soSoHoKhau = tangThuCacheModel.soSoHoKhau;

        if ((soSoHoKhau != null) && (soSoHoKhau.length() == 0)) {
            tangThuCacheModel.soSoHoKhau = null;
        }

        tangThuCacheModel.diaChiThuongTru = getDiaChiThuongTru();

        String diaChiThuongTru = tangThuCacheModel.diaChiThuongTru;

        if ((diaChiThuongTru != null) && (diaChiThuongTru.length() == 0)) {
            tangThuCacheModel.diaChiThuongTru = null;
        }

        tangThuCacheModel.diaChiThuongTruTinhId = getDiaChiThuongTruTinhId();

        tangThuCacheModel.diaChiThuongTruQuanHuyenId = getDiaChiThuongTruQuanHuyenId();

        tangThuCacheModel.diaChiThuongTruPhuongXaId = getDiaChiThuongTruPhuongXaId();

        tangThuCacheModel.doiTuongTienAnId = getDoiTuongTienAnId();

        tangThuCacheModel.hoVaTenNguoiCoTienAn = getHoVaTenNguoiCoTienAn();

        String hoVaTenNguoiCoTienAn = tangThuCacheModel.hoVaTenNguoiCoTienAn;

        if ((hoVaTenNguoiCoTienAn != null) &&
                (hoVaTenNguoiCoTienAn.length() == 0)) {
            tangThuCacheModel.hoVaTenNguoiCoTienAn = null;
        }

        Date ngayLuu = getNgayLuu();

        if (ngayLuu != null) {
            tangThuCacheModel.ngayLuu = ngayLuu.getTime();
        } else {
            tangThuCacheModel.ngayLuu = Long.MIN_VALUE;
        }

        tangThuCacheModel.viTriLuu = getViTriLuu();

        String viTriLuu = tangThuCacheModel.viTriLuu;

        if ((viTriLuu != null) && (viTriLuu.length() == 0)) {
            tangThuCacheModel.viTriLuu = null;
        }

        tangThuCacheModel.lapMoi = getLapMoi();

        tangThuCacheModel.chuThich = getChuThich();

        String chuThich = tangThuCacheModel.chuThich;

        if ((chuThich != null) && (chuThich.length() == 0)) {
            tangThuCacheModel.chuThich = null;
        }

        return tangThuCacheModel;
    }

    @Override
    public String toString() {
        StringBundler sb = new StringBundler(33);

        sb.append("{tangThuId=");
        sb.append(getTangThuId());
        sb.append(", userId=");
        sb.append(getUserId());
        sb.append(", userName=");
        sb.append(getUserName());
        sb.append(", createDate=");
        sb.append(getCreateDate());
        sb.append(", modifiedDate=");
        sb.append(getModifiedDate());
        sb.append(", soSoHoKhau=");
        sb.append(getSoSoHoKhau());
        sb.append(", diaChiThuongTru=");
        sb.append(getDiaChiThuongTru());
        sb.append(", diaChiThuongTruTinhId=");
        sb.append(getDiaChiThuongTruTinhId());
        sb.append(", diaChiThuongTruQuanHuyenId=");
        sb.append(getDiaChiThuongTruQuanHuyenId());
        sb.append(", diaChiThuongTruPhuongXaId=");
        sb.append(getDiaChiThuongTruPhuongXaId());
        sb.append(", doiTuongTienAnId=");
        sb.append(getDoiTuongTienAnId());
        sb.append(", hoVaTenNguoiCoTienAn=");
        sb.append(getHoVaTenNguoiCoTienAn());
        sb.append(", ngayLuu=");
        sb.append(getNgayLuu());
        sb.append(", viTriLuu=");
        sb.append(getViTriLuu());
        sb.append(", lapMoi=");
        sb.append(getLapMoi());
        sb.append(", chuThich=");
        sb.append(getChuThich());
        sb.append("}");

        return sb.toString();
    }

    @Override
    public String toXmlString() {
        StringBundler sb = new StringBundler(52);

        sb.append("<model><model-name>");
        sb.append("qldc.pm.tienan.model.TangThu");
        sb.append("</model-name>");

        sb.append(
            "<column><column-name>tangThuId</column-name><column-value><![CDATA[");
        sb.append(getTangThuId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>userId</column-name><column-value><![CDATA[");
        sb.append(getUserId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>userName</column-name><column-value><![CDATA[");
        sb.append(getUserName());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>createDate</column-name><column-value><![CDATA[");
        sb.append(getCreateDate());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
        sb.append(getModifiedDate());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>soSoHoKhau</column-name><column-value><![CDATA[");
        sb.append(getSoSoHoKhau());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>diaChiThuongTru</column-name><column-value><![CDATA[");
        sb.append(getDiaChiThuongTru());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>diaChiThuongTruTinhId</column-name><column-value><![CDATA[");
        sb.append(getDiaChiThuongTruTinhId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>diaChiThuongTruQuanHuyenId</column-name><column-value><![CDATA[");
        sb.append(getDiaChiThuongTruQuanHuyenId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>diaChiThuongTruPhuongXaId</column-name><column-value><![CDATA[");
        sb.append(getDiaChiThuongTruPhuongXaId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>doiTuongTienAnId</column-name><column-value><![CDATA[");
        sb.append(getDoiTuongTienAnId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hoVaTenNguoiCoTienAn</column-name><column-value><![CDATA[");
        sb.append(getHoVaTenNguoiCoTienAn());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>ngayLuu</column-name><column-value><![CDATA[");
        sb.append(getNgayLuu());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>viTriLuu</column-name><column-value><![CDATA[");
        sb.append(getViTriLuu());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>lapMoi</column-name><column-value><![CDATA[");
        sb.append(getLapMoi());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>chuThich</column-name><column-value><![CDATA[");
        sb.append(getChuThich());
        sb.append("]]></column-value></column>");

        sb.append("</model>");

        return sb.toString();
    }
}
